package ${package.Service};

import ${package.Entity}.${entity};
import ${superServiceClassPackage};

<#if cfg.pfyPlugin_batch>
import java.util.List;
</#if>

/**
 * <p>
 * ${table.comment!} 服务类
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
<#if kotlin>
interface ${table.serviceName} : ${superServiceClass}<${entity}>
<#else>
public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {

<#if cfg.pfyPlugin_selective>
    //根据选择的属性进行插入
    int insertSelective(${entity} record, ${entity}.Column ... selective);

    //根据选择的属性对主键对应的数据进行修改
    int updateByPrimaryKeySelective(${entity} record, ${entity}.Column ... selective);

</#if>
<#if cfg.pfyPlugin_batch>
    //批量插入记录
    int batchInsert(List<${entity}> list);

    //批量修改记录
    int batchUpsert(List<${entity}> list);

</#if>
}
</#if>
